package models

// 用户预付款记录
type PayPrepaidRecord struct {
	PrepaidId *uint64 `gorm:"column:prepaid_id;primarykey"` // 预付款ID
	CustId *uint64 `gorm:"column:cust_id"` // 用户id
	Orderno *string `gorm:"column:orderno"` // 订单编号
	PrepaidAmount *float64 `gorm:"column:prepaid_amount"` // 预付款金额
	PrepaidTime *jsontime.JsonTime `gorm:"column:prepaid_time"` // 预付款时间
	PrepaidStatus *uint8 `gorm:"column:prepaid_status"` // 预付款状态 1:未支付 2:已支付 3:支付失败
	RefundTime *jsontime.JsonTime `gorm:"column:refund_time"` // 预付款退款时间
	RefundAmount *float64 `gorm:"column:refund_amount"` // 退款金额
	RefundStatus *uint8 `gorm:"column:refund_status"` // 退款状态 1:未退款 2:已退款 3:退款失败
	CreatedTime *jsontime.JsonTime `gorm:"column:created_time"` 
	UpdatedTime *jsontime.JsonTime `gorm:"column:updated_time"` // 更新时间
}
func (entity *PayPrepaidRecord) TableName() string {
	return "pay_prepaid_record"
}